package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.youlai.boot.system.model.entity.RequestWaste;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.util.List;

import jakarta.validation.constraints.*;

/**
 * 处理记录表单对象
 *
 * @author youlaitech
 * @since 2025-02-28 16:53
 */
@Getter
@Setter
@Schema(description = "处理记录表单对象")
public class ProcessRecordForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    private Long userId;
    private String username;
    private Long orgId;
    private String orgName;
    @Schema(description = "关联主表")
    private Long requestId;

    @Schema(description = "处理状态")
    private Integer processStatus;

    @Schema(description = "操作员id")
    private Long operationId;
    private String operatorName;
    @Schema(description = "开始处理时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime startTime;

    @Schema(description = "结束处理时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime endTime;

    /**
     * 输入物
     */
    private String inputObj;
    @Schema(description = "输入物")
    private BigDecimal inputWeight;

    /**
     * 输出物
     */
    private String outputObj;
    @Schema(description = "输出物")
    private BigDecimal outputWeight;

    @Schema(description = "处理过程文件")
    private List<String> fileList;

    private String remark;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTime;

    private List<RequestWaste> wasteList;

}
